package com.hongdee.insurance.commission.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * Created by Mr. Xu on 2017/4/25.
 * 保险佣金
 */
@Entity
@Table(name = "T_Insurance_Commission")
public class TInsuranceCommission extends BaseEntity{
    /**
     * 保险类别（交强险0、商业险1） 2 车船税
     */
    @Column(name = "insurance_type", length = 10, columnDefinition = " VARCHAR(10) COMMENT '保险类别' ")
    private String insuranceType;

    /**
     * 投保类别(新保sb 续保 xb)
     */
    @Column(name = "insure_type", length = 10, columnDefinition = " VARCHAR(10) COMMENT '投保类别' ")
    private String insureType;
    /**
     * 佣金类别（常规佣金0、促销佣金1）
     */
    @Column(name = "commission_type", length = 10, columnDefinition = " VARCHAR(10) COMMENT '佣金类别' ")
    private String commissionType;
    /**
     * 起始日期
     */
    @Column(name = "start_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '起始日期' ")
    private String startDate;
    /**
     * 终止日期
     */
    @Column(name = "stop_date", length = 32, columnDefinition = " VARCHAR(32) COMMENT '终止日期' ")
    private String stopDate;
    /**
     * 公司id
     */
    @Column(name = "company_id", length = 32, columnDefinition = " VARCHAR(32) COMMENT '公司id' ")
    private String companyId;
    /**
     * 佣金
     */
    @Column(name = "commission" ,length = 32, columnDefinition = " VARCHAR(32) COMMENT '佣金' ")
    private String commission;

    /**
     * 应用单位 与CRM公司挂钩 0 应用全部 其它为公司ID
     */
    @Column(name = "apply_unit" ,length = 32, columnDefinition = " VARCHAR(32) COMMENT '应用单位' ")
    private String applyUnit;

    @Column(name = "status" ,length = 32, columnDefinition = "VARCHAR(32) COMMENT '审核状态默认为0 审核通过1'")
    private String status;

    @Column(name = "remark",length = 200,columnDefinition = "VARCHAR(200) COMMENT '备注'")
    private String remark;

    @Column(name = "create_company_id",length = 32,columnDefinition = "VARCHAR(32) COMMENT '创建公司ID'")
    private String createCompanyId;

    @Column(name = "apply_unit_name",length = 256,columnDefinition = "VARCHAR(256) COMMENT '创建公司名称'")
    private String applyUnitName;

    /**
     * 增加单交强 单商业  交强共保
     */
    @Column(name = "iscompulsoryinsurance",length = 32,columnDefinition = "VARCHAR(32) COMMENT '是否单交强  0单交强 1单商业 2交强 商业'")
    private String iscompulsoryinsurance;

    public String getCreateCompanyId() {
        return createCompanyId;
    }

    public void setCreateCompanyId(String createCompanyId) {
        this.createCompanyId = createCompanyId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Column(name = "area",length = 32,columnDefinition = "VARCHAR(32) COMMENT '区域'")
    private String area;

    @Column(name = "group_code",length = 32,columnDefinition = "VARCHAR(32) COMMENT '分组编码'")
    private String groupCode;

    public String getIscompulsoryinsurance() {
        return iscompulsoryinsurance;
    }

    public void setIscompulsoryinsurance(String iscompulsoryinsurance) {
        this.iscompulsoryinsurance = iscompulsoryinsurance;
    }

    /**
     * 临时字段 标记是否为修改字段
     */
    @Transient
    private boolean upd;



    public boolean isUpd() {
        return upd;
    }

    public void setUpd(boolean upd) {
        this.upd = upd;
    }

    /**
     *
     * @return insuranceType
     */
    public String getInsuranceType() {
        return insuranceType;
    }

    /**
     *
     * @param insuranceType String
     */
    public void setInsuranceType(String insuranceType) {
        this.insuranceType = insuranceType;
    }

    /**
     *
     * @return commissionType
     */
    public String getCommissionType() {
        return commissionType;
    }

    /**
     *
     * @param commissionType String
     */
    public void setCommissionType(String commissionType) {
        this.commissionType = commissionType;
    }

    /**
     *
     * @return startDate
     */
    public String getStartDate() {
        return startDate;
    }

    /**
     *
     * @param startDate String
     */
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    /**
     *
     * @return stop_date
     */
    public String getStopDate() {
        return stopDate;
    }

    /**
     *
     * @param stopDate String
     */
    public void setStopDate(String stopDate) {
        this.stopDate = stopDate;
    }

    /**
     *
     * @return companyId
     */
    public String getCompanyId() {
        return companyId;
    }

    /**
     *
     * @param companyId String
     */
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    /**
     *
     * @return commission
     */
    public String getCommission() {
        return commission;
    }

    /**
     *
     * @param commission String
     */
    public void setCommission(String commission) {
        this.commission = commission;
    }

    public String getInsureType() {
        return insureType;
    }

    public void setInsureType(String insureType) {
        this.insureType = insureType;
    }

    public String getApplyUnit() {
        return applyUnit;
    }

    public void setApplyUnit(String applyUnit) {
        this.applyUnit = applyUnit;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getApplyUnitName() {
        return applyUnitName;
    }

    public void setApplyUnitName(String applyUnitName) {
        this.applyUnitName = applyUnitName;
    }
}
